import requests
class Order:
    def order_same(self,ship_name,ship_user_name,province,city,county):
        p = requests.session()
        p.headers.update({'verifyCode': 'aaaa'})
        data = {'name': 'admin', 'password': 123456}
        p.post('http://192.168.34.146/TinyShop_v1.7/index.php?con=admin&act=check', data)
        data = {'ship_name':ship_name,
            'ship_user_name':ship_user_name,
            'province':province,
            'city':city,
            'county':county,
            'addr':'',
            'zip':'',
            'phone':'',
            'mobile':'',
            'is_default':1,
            'note':'' }
        r = p.post('http://192.168.34.146/TinyShop_v1.7/index.php?con=order&act=ship_save', data)
        s= r.text
        return s
